﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.Master" AutoEventWireup="true" CodeBehind="VideoDetail.aspx.cs" Inherits="GUI.Pages.Video.VideoDetail" %>
<%@ OutputCache VaryByParam="*" Duration="180" %>
<%@ Register TagPrefix="uc" TagName="VideoLightbox" Src="~/Controls/Video/VideoLightbox.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMainContent" runat="server">
    <uc:VideoLightbox runat="server" />
    <script type="text/javascript">
        sohavideo.pushVideoToCache(<%=VideoDetailData %>[0]);
        sohavideo.lightboxVideo(<%=VideoId %>);
        (function () {
            $('.lb-zones li.current').removeClass('current');
            $('.lb-zones li a[rel=' + <%=VideoZoneId %> + ']').closest('li').addClass('current');
            sohavideo.onCloseLightbox(function() {
                document.location.href = '<%=ReturnUrl %>';
            });
        })();
    </script>
</asp:Content>
